package demo2;

import demo1.Magpie;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-26
 * Time: 21:20
 */
public class Main {
    public static void main(String[] args) {
        demo1.Magpie magpie = new Magpie();
        magpie.eat();//调用父接口的eat()。输出：喜鹊正在吃...
    }
}

